from django.db import models

# Create your models here.
class Cate(models.Model):
    name = models.CharField(max_length=50)
class Good(models.Model):
    name = models.CharField(max_length=50)
    price = models.IntegerField(null=True)
    img = models.ImageField(upload_to='img')
    cate = models.ForeignKey(Cate,on_delete=models.CASCADE,null=True)
